import { GETLIST, CHANGELISTSTATUS } from '../types/indexList'
import { createAction } from 'redux-actions'
import index from '@/api/index'
export const getList = createAction(GETLIST, (params) => {
  return new Promise(resolve=>{
    index.indexPackage(params).then(res => resolve(res))
  })
})
export const degree = createAction(CHANGELISTSTATUS, (params, obj) => {
  return new Promise(resolve=>{
    index.collPackageRecord(params).then(res => resolve(obj))
  })
})